package homework;

public class IntegerDemo {
    public static void main(String[] args) {

        int max=Integer.MAX_VALUE;
        int min=Integer.MIN_VALUE;
        System.out.println("最大值为："+max+","+"最小值为："+min);

        long max1=Long.MAX_VALUE;
        long min1=Long.MIN_VALUE;
        System.out.println("最大值为："+max1+","+"最小值为："+min1);

        String s="39";
        int num=Integer.parseInt(s);
        System.out.println(num);

        String s1="3.1415926";
        double pi=Double.parseDouble(s1);
        System.out.println(pi);

        Integer i=5;//触发自动装箱
        //Integer i=Integer.valueOf(5);
        int j=i;//触发自动拆箱
        //int j=i.intValue();

    }
}
